#ifndef _DEBUG_KHH_
#define _DEBUG_KHH_

typedef struct Pc_control_struct PC_CONTROL_INFO;
#pragma pack(push,1)
struct Pc_control_struct
{
	uint8_t label;
	uint8_t pcnt;
	uint8_t aux;
	uint16_t roll;
	uint16_t pitch;
	uint16_t yaw;
	uint16_t thr;
};
#pragma pack(pop)


enum PACKET_ASSIGN2
{
	FLIGHT_INFO = 0,
	PID_READ = 1,
	PID_ROLL_RECV = 2,
	PID_PITCH_RECV,
	PID_YAW_RECV,
	PID_BARO_RECV,
	PID_SONAR_RECV,
	PID_GPSROLL_RECV,
	PID_GPSPITCH_RECV,
	TILT_SERVO_RECV,
	ROLL_SERVO_RECV = 10,
	SONAR_RECV = 11,
	GPS_CONTROL_INFO,
	OSD_INFO,
	MAG_OFFSET,
	OPTION1_INFO,
	WAYPOINT,
	VER_INFO,
	PC_CONTROL = 25,
	VERSION_INFO = 100,
	REQUEST
};
extern volatile uint16_t RX_ail,RX_ele,RX_thr,RX_rud;
extern volatile uint8_t RX_aux;
extern volatile uint16_t Uart_CTRL_timer;

extern PC_CONTROL_INFO PC_control;
extern void debug_init(void);
#endif
